/**
 *
 */
package fr.afcepf.al23.qualite.exceptions;

/**
 * @author Imed
 *
 */
public class QualiteException extends Exception {

    /**
     *
     */
    private static final long serialVersionUID = 1L;

    /**
     *
     * @author Imed
     *
     */
    private static enum ErrorCode {
        /**
         * mail.
         */
        MAIL_EXIST,
        /**
         * commande invalide.
         */
        COMMANDE_INVALIDE
    };

    /**
     * code.
     */
    private ErrorCode code;

    /**
     * @return the code
     */
    public ErrorCode getCode() {
        return code;
    }

    /**
     * @param paramCode the code to set
     */
    public void setCode(ErrorCode paramCode) {
        code = paramCode;
    }

    /**
     *
     */
    public QualiteException() {
        super();
        // TODO Auto-generated constructor stub
    }

    /**
     * @param paramMessage
     *            mess
     * @param paramCause
     *            cau
     * @param paramEnableSuppression
     *            en
     * @param paramWritableStackTrace
     *            stack
     */
    public QualiteException(String paramMessage, Throwable paramCause,
            boolean paramEnableSuppression, boolean paramWritableStackTrace) {
        super(paramMessage, paramCause, paramEnableSuppression,
                paramWritableStackTrace);
        // TODO Auto-generated constructor stub
    }

    /**
     * @param paramMessage
     *            mess
     * @param paramCause
     *            caus
     */
    public QualiteException(String paramMessage, Throwable paramCause) {
        super(paramMessage, paramCause);
        // TODO Auto-generated constructor stub
    }

    /**
     * @param paramMessage
     *            mess
     */
    public QualiteException(String paramMessage) {
        super(paramMessage);
        // TODO Auto-generated constructor stub
    }

    /**
     * @param paramCause
     *            ca
     */
    public QualiteException(Throwable paramCause) {
        super(paramCause);
        // TODO Auto-generated constructor stub
    }

}
